package com.wanmait.recycle.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.wanmait.recycle.pojo.Photolib;
import com.wanmait.recycle.util.Pager;

public interface PhotolibMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Photolib record);

    int insertSelective(Photolib record);

    Photolib selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Photolib record);

    int updateByPrimaryKey(Photolib record);
    
    /*获得图片列表 ZQ*/
    List<Photolib> findAll();
    /*根据Id删除图片  ZQ*/
    void deleteById(Integer id);
    /*删除多张图片*/
    void deleteByIds(@Param("ids") String ids);
    /*添加一张或多张图片*/
    void insertPhotos(@Param("photoNames") List<String> photoNames,@Param("rubbishId") Integer rubbishId);
    /*根据多条件查询*/
    List<Photolib> findByCriteria(@Param("beginTime") String beginTime,@Param("endTime") String endTime,@Param("searchStr") String searchStr);
    
    
}